import com.jaeke.jtproxy.UserServiceProxy;
import com.jaeke.service.UserService;
import com.jaeke.service.impl.UserServiceImpl;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test0001 {

    public static void main(String[] args) {
//        UserService userService = new UserServiceImpl();
//        userService.add();
//        UserServiceProxy userServiceProxy  = new UserServiceProxy(userService);
//        userServiceProxy.add();

        // 表示可以读取到对应的xml文件
        ClassPathXmlApplicationContext applicationContext =
                new ClassPathXmlApplicationContext("spring.xml");
        UserService userService = (UserService)applicationContext.getBean("userServiceImpl");
        userService.add();


    }



}
